If there are locations unknown to the libgweather version gnome-shell is
using, don't crash.
JS ERROR: TypeError: b.location is null
WorldClocksSection<._clocksChanged/<@resource:///org/gnome/shell/ui/dateMenu.js:141:1
WorldClocksSection<._clocksChanged@resource:///org/gnome/shell/ui/dateMenu.js:139:9
https://bugzilla.gnome.org/show_bug.cgi?id=791148
if (!clocks[i].location)
continue;
let l = world.deserialize(clocks[i].location);
- this._locations.push({ location: l });
+ if (l)
+ this._locations.push({ location: l });
}
this._locations.sort(function(a, b) {